import request from '@/utils/request'

export function fetchMarketServiceIntegrationList(data) {
  return request({
    url: '/system/marketservice/MarketServiceIntegration/list',
    method: 'post',
    data,
  })
}

export function getMarketServiceIntegration(id) {
  return request({
    url: '/system/marketservice/MarketServiceIntegration/detail/' + id,
    method: 'get',
  })
}

export function createMarketServiceIntegration(data) {
  return request({
    url: '/system/marketservice/MarketServiceIntegration/add',
    method: 'post',
    data,
  })
}

export function updateMarketServiceIntegration(data) {
  return request({
    url: '/system/marketservice/MarketServiceIntegration/update',
    method: 'post',
    data,
  })
}

export function deleteMarketServiceIntegration(ids) {
  return request({
    url: '/system/marketservice/MarketServiceIntegration/delete',
    method: 'post',
    data: { ids },
  })
}

export function exportMarketServiceIntegration(data) {
  return request({
    url: '/system/marketservice/MarketServiceIntegration/export',
    method: 'post',
    data,
  })
}
export function getMarketServicetransmit({ params }) {
  return request({
    url: '/system/marketservice/MarketServiceIntegration/transmit?id=' + params.id,
    method: 'get',
  })
}

export function getMarketServiceIntegrationindex(data) {
  return request({
    url: '/system/marketservice/MarketServiceIntegration/use',
    method: 'post',
    data,
  })
}
